{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build for Windows from Windows",
            "type": "shell",
            "command": "cmd",
            "args": [
                "/c",
                "go env -w GOOS=windows && go build -o ${workspaceFolder}\\bin\\oioss.exe ${workspaceFolder}\\main.go"
            ],
            "group": {
                "kind": "build",
            }
        },
        {
            "label": "build for Linux from Windows",
            "type": "shell",
            "command": "cmd",
            "args": [
                "/c",
                "go env -w GOOS=linux && go build -o ${workspaceFolder}\\bin\\oioss ${workspaceFolder}\\main.go; go env -w GOOS=windows"
            ],
            "presentation": {
                "reveal": "silent"
            },
            "group": "build",
            "problemMatcher": "$go"
        },
        {
            "label": "build for Windows from Linux",
            "type": "shell",
            "command": "go env -w GOOS=windows && go build -o \"${workspaceFolder}/bin/oioss.exe\" \"${workspaceFolder}/main.go\"; go env -w GOOS=linux",
            "args": [],
            "presentation": {
                "reveal": "silent"
            },
            "group": "build",
            "problemMatcher": "$go",
        },
        {
            "label": "build for Linux from Linux",
            "type": "shell",
            "command": "go env -w GOOS=linux && go build -o \"${workspaceFolder}/bin/oioss\" \"${workspaceFolder}/main.go\"",
            "args": [],
            "presentation": {
                "reveal": "silent"
            },
            "group": "build",
            "problemMatcher": "$go",
        }
    ]
}